package day06;

public class MaxOfArrayDemo_01 {
    public static void main(String[] args) {
       double a =1.2;
       int sub = 12;
       int year = 0;
       int month = 0;
       int b= 0;
       for (int i=1;i<=10;i++){
           year=(int)(sub/a);
           month=(int)(year*12);
           b =(int)(sub/sub/a/year*12)*1000;
       }
        System.out.println("总共"+year+"年还款完毕!");
        System.out.println("第"+year/10+"年第"+year/10+"个月还款"+b+"元!");
        System.out.println("总共"+month+"个月还款完毕，每月需还款"+b+"元");
    }
}
